Here is a patch for the Cut/Patch Error list request
https://sourceforge.net/p/jedit/plugin-feature-requests/208/
| Submitted | grepppo - 2014-07-07 22:37:07.214000 | Assigned | ezust |
|---|---|---|---|
| Priority | 5 | Labels | |
| Status | open | Group | 4.4 |
| Resolution | None |
| 2014-07-10 14:56:20.506000 ezust |
instead of hardcoding English phrases like "Select All", we use jEdit.getProperty("common.selectAll")
|
|---|---|
| 2014-07-10 21:54:46.884000 grepppo |
Here is a corrected version, let me know of there are any other comments errorlist.v2.patch (10.4Kio) |
| 2014-07-10 23:40:00.579000 ezust |
ok i ran it. I am missing the "copy selected errors to clipboard" in the popup. It
should be in the context menu also.
|
| 2014-07-11 09:07:35.929000 grepppo |
Not sure if we are talking at cross purposes here.
|
| 2014-07-11 14:37:51.025000 ezust |
It turns out your "select" context actions don't change the selection of the treeview
either. So they are named incorrectly.
|
| 2014-07-11 15:13:25.162000 ezust |
you can jEdit.getProperty("hypersearch-results.copy-to-clipboard") for an already
translated "Copy to Clipboard" string from jEdit core
|
| 2014-07-11 21:18:10.059000 grepppo |
Right I think that covers it, let me know if you see anything else errorlist.v3.patch (10.5Kio) |
| 2014-07-13 22:27:51.379000 ezust |
Testing the copy to clipboard, I can see the error messages in the copied/pasted text,
but I can't see the filenames (tree node names) that the error messages came from.
|
| 2014-07-14 21:24:22.879000 grepppo |
Fixed as requested errorlist.v4.patch (11.0Kio) |
| 2014-07-14 21:47:44.995000 ezust |
Thanks! It's almost there. One more thing I noticed was that the line number is missing
from the error message - there is a character # but no line#. I think after that is
fixed, it should be ready to go!
|
| 2014-07-15 22:12:19.012000 grepppo |
Hi,
errorlist.v5.patch (12.6Kio) |
| 2014-07-16 00:14:32.586000 ezust |
The output format in the errorlist window has changed. There seems to be an extra
number in the output lines that was not there before. For example, if I "cat" the
below file in the console window:
|
| 2014-07-16 12:00:41.228000 grepppo |
*snip*
|
| 2014-07-16 12:15:11.227000 grepppo |
*Extra character on copy all*
|
| 2014-07-16 13:40:53.216000 ezust |
Attaching a file called "errors.txt" which contains the output of gcc, when it is
compiling a program with errors. I just "cat" the file from console to see errors
in errorlist . It's a bit easier to test the error parsing abilities of the plugin.
errors.txt (228B) |
| 2014-07-18 08:02:03.573000 ezust |
Apologies. "Copy to Clipboard" does work if something is selected, but if I am over
an area of ErrorList while there is no selection, I can still invoke the action and
then it does nothing.
|
| 2014-07-18 08:24:04.347000 ezust |
Additional info, the errors.txt issue where I see extra :1 in the output happens if
I am using Console's Generic or Gcc error parsers.
|
| 2014-07-18 08:29:32.760000 ezust |
This screenshot shows the gcc error parser. screenshot_041.png (87.5Kio) |
| 2014-07-18 08:30:17.437000 ezust |
This screenshot shows the Generic error parser on errors.txt screenshot_042.png (90.8Kio) |
| 2014-07-18 15:37:26.391000 grepppo |
Thanks I'll have a look at this, sadly work I actually getting paid to do is impinging
on my hacking time.
|
| 2014-07-18 17:18:35.778000 ezust |
I see the same problem from the XML plugin - an extra :1 where there was none before.
|
| 2014-08-18 21:29:06.291000 grepppo |
Hi,
errorlist.v6.patch (14.6Kio) |
| 2014-08-28 19:22:59.935000 grepppo |
Hi Alan,
|
| 2014-08-30 15:06:13.540000 ezust |
Here is the activity log from using errorlist.
errorlist.log (56.4Kio) |
| 2014-09-01 21:18:37.405000 grepppo |
Ok this looks like an issue with the way that the error file that you are usng is
being parsed out and passed to the ErrorList. The line number is passed correctly,
but the start offset is taken from the file that you are cat-ing (hence the 1), what
looks like the line number was actually parsed out and put in the front of the error
message, hence it looks like there is an extra line number in the display.
|
| 2014-09-01 21:59:32.570000 ezust |
The XML plugin also reports an extra :1 where there wasn't one before.
errorlist.log (41.5Kio) |
| 2014-09-08 15:37:33.005000 grepppo |
Hi,
|
| 2014-09-09 01:13:02.060000 ezust |
it happens with any xml file that has an error in it.
|
| 2014-09-11 20:48:57.684000 grepppo |
OK, I have reverted the formatting changes so it should be performing as it did originally,
i.e. the message is built from the line number and the error message.
errorlist.v7.patch (13.9Kio) |